package com.anycc.cloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication
@EnableZuulProxy
@EnableResourceServer //资源服务器注解
@EnableEurekaClient
@EnableFeignClients
@EnableCaching //启用缓存
@ComponentScan(basePackages = {"com.anycc.cloud.core.util", "com.anycc.cloud.gateway"})
public class AnyccCloudGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(AnyccCloudGatewayApplication.class, args);
    }

}

